xen.git
20 years agoInclide grant_ref_t definition in split-driver struct
kaf24@firebug.cl.cam.ac.uk [Sat, 3 Dec 2005 09:50:22 +0000 (10:50 +0100)]
Inclide grant_ref_t definition in split-driver struct
defns.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoMerge with xen-ia64-unstable.hg
kaf24@firebug.cl.cam.ac.uk [Sat, 3 Dec 2005 09:44:38 +0000 (10:44 +0100)]
Merge with xen-ia64-unstable.hg

20 years agoUsing a slow serial console with sync_console on SMP leaves an
kaf24@firebug.cl.cam.ac.uk [Sat, 3 Dec 2005 09:44:01 +0000 (10:44 +0100)]
Using a slow serial console with sync_console on SMP leaves an
unusable system: it gets into a flood of

Timer ISR/0: Time went backwards: delta=-3566279 cpu_delta=16433721
shadow=2019998373 off=420435384 processed=2444000000
cpu_processed=2424000000
 0: 2424000000
 1: 2444000000

messages which swamps the console and leaves things almost, but not
quite, completely hung.  It is a simple matter to ratelimit these
printks, which completely eliminates the problem.

20 years agoRead from the store if the filename reported by losetup has been truncated (the
emellor@leeni.uk.xensource.com [Sat, 3 Dec 2005 00:51:36 +0000 (00:51 +0000)]
Read from the store if the filename reported by losetup has been truncated (the
loop driver stores only the first 64 chars of the filename).  In this case, we
need to read through the store until we find the domain using the device, and
read the configured filename from there instead.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoMerged.
emellor@leeni.uk.xensource.com [Fri, 2 Dec 2005 22:27:04 +0000 (22:27 +0000)]
Merged.

20 years agoRevert to simpler ia64 defconfigs, generic one causes loopback failures
djm@kirby.fc.hp.com [Fri, 2 Dec 2005 21:52:41 +0000 (15:52 -0600)]
Revert to simpler ia64 defconfigs, generic one causes loopback failures

20 years agoFix vif-net script for setups where eth0 has no IP address.
cl349@firebug.cl.cam.ac.uk [Fri, 2 Dec 2005 21:15:58 +0000 (22:15 +0100)]
Fix vif-net script for setups where eth0 has no IP address.
Use the IP address associated with the backend network interface
for connections from dom0 to the guest connected to this network
interface.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoMinor changes due to file movement to merge xen-unstable with xen-ia64-unstable
djm@kirby.fc.hp.com [Fri, 2 Dec 2005 18:55:00 +0000 (12:55 -0600)]
Minor changes due to file movement to merge xen-unstable with xen-ia64-unstable

20 years agoMerge
djm@kirby.fc.hp.com [Fri, 2 Dec 2005 18:52:25 +0000 (12:52 -0600)]
Merge

20 years agoFix PAE bootstrap.
kaf24@firebug.cl.cam.ac.uk [Fri, 2 Dec 2005 18:26:58 +0000 (19:26 +0100)]
Fix PAE bootstrap.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoStack pal call emulation implemented. (by Tristan Gingold)
djm@kirby.fc.hp.com [Fri, 2 Dec 2005 18:12:11 +0000 (12:12 -0600)]
Stack pal call emulation implemented. (by Tristan Gingold)
PAL_HALT emulation added: stop machine if dom0, shutdown domain otherwise.

20 years agoAdd a defensive batched tlb flush to free_page_type(), to
kaf24@firebug.cl.cam.ac.uk [Fri, 2 Dec 2005 17:56:24 +0000 (18:56 +0100)]
Add a defensive batched tlb flush to free_page_type(), to
ensure the linear_pg_table remains in sync with modified
page table structure. Otherwise we can update stale entries
and screw reference counts (but probably only when running
a malicious domain).

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoMove cpu0_stack out of Xen text section and into BSS. This
kaf24@firebug.cl.cam.ac.uk [Fri, 2 Dec 2005 17:00:49 +0000 (18:00 +0100)]
Move cpu0_stack out of Xen text section and into BSS. This
avoids getting loads of bogus cpu0_stack lines in call
backtraces from non-debug builds.

Doing this requires greater alignment of the BSS section,
which reveals a bug in ld where the alignment padding is
not added to the program segment's memsz field. We get around
this by finding the address of the last symbol in the image,
and increasing our load image's memsz to include that symbol.

Also some cleanups to the linker scripts.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoUpdate xen-capable elilo to support compressed dom0 kernel images (by Alex Williamson)
djm@kirby.fc.hp.com [Fri, 2 Dec 2005 16:27:22 +0000 (10:27 -0600)]
Update xen-capable elilo to support compressed dom0 kernel images (by Alex Williamson)
This will be released in next official version of elilo but is included
in Xen/ia64 for developer and user convenience until the new version of
elilo is more widely distributed.

20 years agoEnable serial input for Xen (tied to ifdef, default off for now)
djm@kirby.fc.hp.com [Fri, 2 Dec 2005 16:12:07 +0000 (10:12 -0600)]
Enable serial input for Xen (tied to ifdef, default off for now)
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
20 years agoFix pointer in vmx vmmu init code (by Anthony Xu and Kevin Tian)
djm@kirby.fc.hp.com [Fri, 2 Dec 2005 16:06:42 +0000 (10:06 -0600)]
Fix pointer in vmx vmmu init code (by Anthony Xu and Kevin Tian)

20 years agoMake "xm list --long" generate device configuration data from xenstore state
dan@guaranine.beaverton.ibm.com [Fri, 2 Dec 2005 15:57:24 +0000 (15:57 +0000)]
Make "xm list --long" generate device configuration data from xenstore state
instead of internal xend state.
Signed-off-by: Dan Smith <danms@us.ibm.com>
20 years agoThis patch adds a new domain config option, 'cpus' which is a list of
emellor@leeni.uk.xensource.com [Fri, 2 Dec 2005 15:52:47 +0000 (15:52 +0000)]
This patch adds a new domain config option, 'cpus' which is a list of
CPUs a domains' vcpus can use.  The older 'cpu' config option is
prepended to the list of cpus to use and will keep the behavior of
pinning VCPU0.

The cpus option supports ranges and negation, so:

cpus = "0-3,5,^1" produces -> [0,2,3,5]

The list is circular, so in a domain with the following config:

vcpus = 4
cpus  = "0,3,7"  # Use any of 0, 3, 7 for this domain.

would see vcpus 0-3 pinned to cpus 0,3,7,0 respectively.

Also, the pin operation is moved before the memory reservation as vcpu
to cpu mapping will be helpful for future NUMA work when trying to
allocate pages close to the physical cpus being used.

An update to the display of cpumap was needed to normalize the cpumap
values to the range of possible cpus.

I've also included some text for the xmdomain.cfg(5) man page.

Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
20 years agoMerged.
emellor@leeni.uk.xensource.com [Fri, 2 Dec 2005 15:48:55 +0000 (15:48 +0000)]
Merged.

20 years agoFix the block-sharing check for physical devices by using a lock to serialise
emellor@leeni.uk.xensource.com [Fri, 2 Dec 2005 15:48:44 +0000 (15:48 +0000)]
Fix the block-sharing check for physical devices by using a lock to serialise
the check, reading from the store rather than /sys, and checking whether the
VM for apparently-conflicting uses is actually the same (i.e. this is a
migration or a reboot in progress).

This fixes recent failures in 12_block_attach_shared_domU and recloses bug #331.

This fix includes particularly skanky path slicing inside xenbus_probe, which
it would be nice to remove very soon.

The loopback device check still suffers from the problem that filenames over
64 characters long are truncated.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoAdded /etc/init.d/dhcpd to list of init files to check for (supporting Centos
emellor@leeni.uk.xensource.com [Fri, 2 Dec 2005 15:39:13 +0000 (15:39 +0000)]
Added /etc/init.d/dhcpd to list of init files to check for (supporting Centos
4.2).

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoAdded serialisation facilities. Udev is supposed to serialise events, but sadly
emellor@leeni.uk.xensource.com [Fri, 2 Dec 2005 15:38:22 +0000 (15:38 +0000)]
Added serialisation facilities.  Udev is supposed to serialise events, but sadly
the older hotplug infrastructure does not, so we must be able to serialise the
block-sharing checks (etc) ourselves.

Redirect stderr to /var/log/xen-hotplug.log, for better debugging.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoRemove the watch on the /vm/<uuid> path when rebooting or migrating. We don't
emellor@leeni.uk.xensource.com [Fri, 2 Dec 2005 15:36:39 +0000 (15:36 +0000)]
Remove the watch on the /vm/<uuid> path when rebooting or migrating.  We don't
want to end up with multiple watches on the same path, otherwise we get a
watch event storm after many such reboots or migrates.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoDon't log every time around the big transaction writing the device details.
emellor@leeni.uk.xensource.com [Fri, 2 Dec 2005 15:35:22 +0000 (15:35 +0000)]
Don't log every time around the big transaction writing the device details.
This transaction may be starved for a short while, and logging inside the while
loop won't help!

Use new xstransact.complete to tidy up one other transaction.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoAdded xen-hotplug.log to the files to collect.
emellor@leeni.uk.xensource.com [Fri, 2 Dec 2005 15:33:38 +0000 (15:33 +0000)]
Added xen-hotplug.log to the files to collect.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoMore console-related cleanups.
kaf24@firebug.cl.cam.ac.uk [Fri, 2 Dec 2005 15:26:57 +0000 (16:26 +0100)]
More console-related cleanups.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoSimplify console driver and avoid unnecessary spinning in the
kaf24@firebug.cl.cam.ac.uk [Fri, 2 Dec 2005 15:14:20 +0000 (16:14 +0100)]
Simplify console driver and avoid unnecessary spinning in the
transmit handler.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoDisable devfs from the -xen configs. It's obsolete and was causing problems for some...
iap10@freefall.cl.cam.ac.uk [Fri, 2 Dec 2005 14:37:31 +0000 (15:37 +0100)]
Disable devfs from the -xen configs. It's obsolete and was causing problems for some users.
Signed-off-by: ian@xensource.com
20 years agoAvoid a hang when probing the partition table on imported block
sos22@douglas.cl.cam.ac.uk [Fri, 2 Dec 2005 14:16:37 +0000 (15:16 +0100)]
Avoid a hang when probing the partition table on imported block
devices.  If you export a device so the importing domain sees it as a
whole disk rather than a partition, then add_disk will try to probe
its partition table.  However, we were calling add_disk before the
device was properly connected, and then not connecting it until
add_disk had finished.  This meant that we ended up never actually
connecting the device, and any accesses to it would then hang.

Fix this by not calling add_disk until we're connected.

Signed-off-by: Steven Smith, sos22@cam.ac.uk
20 years agoBlkif request notifications use generic ring req_event holdoff
kaf24@firebug.cl.cam.ac.uk [Fri, 2 Dec 2005 12:27:39 +0000 (13:27 +0100)]
Blkif request notifications use generic ring req_event holdoff
mechanism rather than custom mechanism.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoAdd padding to ring headers for future expansion.
kaf24@firebug.cl.cam.ac.uk [Fri, 2 Dec 2005 12:16:13 +0000 (13:16 +0100)]
Add padding to ring headers for future expansion.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoClean up netif messages. Remove bitfields, and create
kaf24@firebug.cl.cam.ac.uk [Fri, 2 Dec 2005 12:10:25 +0000 (13:10 +0100)]
Clean up netif messages. Remove bitfields, and create
extensible flag fields in tx requests and rx responses, in
place of specific csum_blank/csum_valid bitfields.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoFix tpm split driver to include grant-table defintions.
kaf24@firebug.cl.cam.ac.uk [Fri, 2 Dec 2005 10:10:01 +0000 (11:10 +0100)]
Fix tpm split driver to include grant-table defintions.

Signed-off-by: Stefan Beger <stefanb@us.ibm.com>
20 years agoWhile working bug #143, it came to my attention that no verbose error is
kaf24@firebug.cl.cam.ac.uk [Fri, 2 Dec 2005 10:08:24 +0000 (11:08 +0100)]
While working bug #143, it came to my attention that no verbose error is
loged if the dom0 kernel mangles a packet and tries to checksum
offload it.

This should let the user know what is going wrong (instead of silently
dropping the packet).

Signed-off-by: Jon Mason <jdmason@us.ibm.com>
20 years agoFix __get_user() asm warning by making source and dest
kaf24@firebug.cl.cam.ac.uk [Fri, 2 Dec 2005 10:06:40 +0000 (11:06 +0100)]
Fix __get_user() asm warning by making source and dest
operands the same size (32 bits).

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoAvoid ns16550 poll timeout underflow.
kaf24@firebug.cl.cam.ac.uk [Fri, 2 Dec 2005 10:05:49 +0000 (11:05 +0100)]
Avoid ns16550 poll timeout underflow.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoMore fixes for live migrate on PAE and 64-bit.
smh22@firebug.cl.cam.ac.uk [Fri, 2 Dec 2005 08:54:09 +0000 (09:54 +0100)]
More fixes for live migrate on PAE and 64-bit.

Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
Signed-off-by: Steven Hand <steven@xensource.com>
20 years agoInitialise the connection ID when a domain is introduced. This (re)enables
emellor@leeni.uk.xensource.com [Fri, 2 Dec 2005 01:34:39 +0000 (01:34 +0000)]
Initialise the connection ID when a domain is introduced.  This (re)enables
the permission checking in xenstored.

Default the store permissions to read/write nobody (apart from the privileged
domain).  Create a /local node with these permissions, ready for inheriting by
children.  In Xend, create a /vm node with these permissions too, for the same
reason, and set the permissions on /local/domain/<domid> and each device
backend path to allow the guest domain to access these paths appropriately.

Added xstransact.{set_permissions,SetPermissions,mkdir,Mkdir,complete} as
support facilities.

This closes bug #290.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoFix error message.
emellor@leeni.uk.xensource.com [Fri, 2 Dec 2005 01:19:25 +0000 (01:19 +0000)]
Fix error message.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoUse getopt.gnu_getopt rather than getopt.getopt, so that xm list VM --long is
emellor@leeni.uk.xensource.com [Fri, 2 Dec 2005 01:04:09 +0000 (01:04 +0000)]
Use getopt.gnu_getopt rather than getopt.getopt, so that xm list VM --long is
parsed the same as xm list --long VM.  This is only in Python 2.3 -- for
Python 2.2 we keep the old getopt.getopt behaviour.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoMerged.
emellor@leeni.uk.xensource.com [Fri, 2 Dec 2005 01:00:01 +0000 (01:00 +0000)]
Merged.

20 years agoFix VBD recovery logic on SMP guests (+ a minor error reporting fix for save)
smh22@firebug.cl.cam.ac.uk [Thu, 1 Dec 2005 19:43:04 +0000 (20:43 +0100)]
Fix VBD recovery logic on SMP guests (+ a minor error reporting fix for save)

Signed-off-by: Steven Hand <steven@xensource.com>
20 years agoImplement generic notiication hold-off in the ring macros
kaf24@firebug.cl.cam.ac.uk [Thu, 1 Dec 2005 19:23:07 +0000 (20:23 +0100)]
Implement generic notiication hold-off in the ring macros
(ring.h). Move net and blk split drivers to use it.
blktap probably needs some work. :-)

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoFix flush_tlb_mask to no-op for non-SMP, now needed in grant_table.c
djm@kirby.fc.hp.com [Thu, 1 Dec 2005 17:24:33 +0000 (11:24 -0600)]
Fix flush_tlb_mask to no-op for non-SMP, now needed in grant_table.c

20 years agoFix pfn_valid call (by Kevin Tian)
djm@kirby.fc.hp.com [Thu, 1 Dec 2005 17:21:48 +0000 (11:21 -0600)]
Fix pfn_valid call (by Kevin Tian)

20 years agoPrevent BVT scheduler to be set with a too low ctx_allow by applying
vhanquez@kneesa.uk.xensource.com [Thu, 1 Dec 2005 13:13:15 +0000 (13:13 +0000)]
Prevent BVT scheduler to be set with a too low ctx_allow by applying
a 10 microsecs low limit to the user parameter.

Signed-off-by: Vincent Hanquez <vincent@xensource.com>
20 years agoDefine explicit evtchn_port_t type (32 bits) and plumb up
kaf24@firebug.cl.cam.ac.uk [Thu, 1 Dec 2005 14:22:22 +0000 (15:22 +0100)]
Define explicit evtchn_port_t type (32 bits) and plumb up
to user space thru /dev/xen/evtchn.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoAdd test for the last unresolved bit of bug #416. Check that
dan@localhost.localdomain [Thu, 1 Dec 2005 11:15:31 +0000 (11:15 +0000)]
Add test for the last unresolved bit of bug #416.  Check that
"xm list --long" reflects removed devices.

20 years agoMove net split driver onto ring.h generic rings.
kaf24@firebug.cl.cam.ac.uk [Thu, 1 Dec 2005 10:27:27 +0000 (11:27 +0100)]
Move net split driver onto ring.h generic rings.

No backend should SHARED_RING_INIT(): that's the frontend's job.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoptsname() is applied to the master fd, not the slave fd.
kaf24@firebug.cl.cam.ac.uk [Thu, 1 Dec 2005 10:10:40 +0000 (11:10 +0100)]
ptsname() is applied to the master fd, not the slave fd.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agofix the console when only XEN_PHYSDEV_ACCESS is Yes.
vhanquez@kneesa.uk.xensource.com [Thu, 1 Dec 2005 07:31:50 +0000 (07:31 +0000)]
fix the console when only XEN_PHYSDEV_ACCESS is Yes.

Signed-off-by: Vincent Hanquez <vincent@xensource.com>
20 years agoFix migrate.
smh22@firebug.cl.cam.ac.uk [Thu, 1 Dec 2005 11:27:29 +0000 (12:27 +0100)]
Fix migrate.

Signed-off-by: Steven Hand <steven@xensource.com>
20 years agoMerged.
emellor@leeni.uk.xensource.com [Thu, 1 Dec 2005 03:40:26 +0000 (03:40 +0000)]
Merged.

20 years agoMove the dom0 ballooning-out code from the xm create handler and into the
emellor@leeni.uk.xensource.com [Thu, 1 Dec 2005 03:39:23 +0000 (03:39 +0000)]
Move the dom0 ballooning-out code from the xm create handler and into the
server, where it can be used on reboot and migrate as well as create.
Ballooning bugs may still exist (it is unclear) but this is certainly a good
step in the right direction.

Ignore the memory and maxmem entries in the store for dom0 when restarting.
This means that the value in use at the time becomes the configured target.
This should fix the bug whereby dom0_mem settings on the command line are
being overridden by (older) entries in the store.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoRemove /local when xenstored starts. This stops stale data affecting the
emellor@leeni.uk.xensource.com [Thu, 1 Dec 2005 03:32:39 +0000 (03:32 +0000)]
Remove /local when xenstored starts.  This stops stale data affecting the
system immediately after reboot.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoWork around the fact that the physinfo dom0 call is not implemented for IA64.
emellor@leeni.uk.xensource.com [Thu, 1 Dec 2005 03:26:47 +0000 (03:26 +0000)]
Work around the fact that the physinfo dom0 call is not implemented for IA64.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoMerged.
emellor@leeni.uk.xensource.com [Thu, 1 Dec 2005 03:21:45 +0000 (03:21 +0000)]
Merged.

20 years agoAdded a pages_to_kib function, which converts a page count into a number of
emellor@leeni.uk.xensource.com [Thu, 1 Dec 2005 03:19:40 +0000 (03:19 +0000)]
Added a pages_to_kib function, which converts a page count into a number of
KiB.  This allows us to compute the correct amount to balloon out to support
a migration.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoMatch rename of free_pages field to free_memory
rread@ubuntu.eng.hq.xensource.com [Thu, 1 Dec 2005 03:11:49 +0000 (20:11 -0700)]
Match rename of free_pages field to free_memory

Signed-off-by: Robert Read <rread@xensource.com>
20 years agoRemove config.py, it's autogenerated from config.py.in
stekloff@elm3b216.beaverton.ibm.com [Thu, 1 Dec 2005 03:09:35 +0000 (03:09 +0000)]
Remove config.py, it's autogenerated from config.py.in

20 years agoMerged.
emellor@leeni.uk.xensource.com [Thu, 1 Dec 2005 03:07:24 +0000 (03:07 +0000)]
Merged.

20 years agoAdd a new /proc/xen file called 'capabilities'. Currently, when read in dom0 it will...
iap10@freefall.cl.cam.ac.uk [Thu, 1 Dec 2005 01:43:04 +0000 (02:43 +0100)]
Add a new /proc/xen file called 'capabilities'. Currently, when read in dom0 it will return 'control_d', and be empty when read in a guest. This provides a convenient way to allow the root user to detect whether they're running in a guest or dom0, and e.g. gate whether to start xend. In future, when we add more fine grained capabilities we will add other details into this file.

Signed-off-by: ian@xensource.com
20 years agoImprove the tls warning message to mention that the best soloution is to install...
iap10@freefall.cl.cam.ac.uk [Thu, 1 Dec 2005 01:36:46 +0000 (02:36 +0100)]
Improve the tls warning message to mention that the best soloution is to install a 'xen-friendly' glibc.

Signed-off-by: ian@xensource.com
20 years agoAdd (incomplete) dom0_physinfo call to try with xm list and xen-bugtool
djm@kirby.fc.hp.com [Wed, 30 Nov 2005 23:04:48 +0000 (17:04 -0600)]
Add (incomplete) dom0_physinfo call to try with xm list and xen-bugtool

20 years agodevmem.c no longer needed in drivers/xen/core
djm@kirby.fc.hp.com [Wed, 30 Nov 2005 22:17:53 +0000 (16:17 -0600)]
devmem.c no longer needed in drivers/xen/core

20 years agoMerged.
emellor@leeni.uk.xensource.com [Wed, 30 Nov 2005 19:55:08 +0000 (19:55 +0000)]
Merged.

20 years agoAdded xm rename command. Improve the argument checking and error reporting.
emellor@leeni.uk.xensource.com [Wed, 30 Nov 2005 19:54:28 +0000 (19:54 +0000)]
Added xm rename command.  Improve the argument checking and error reporting.

20 years agoMiscellaneous tidying up, no semantic changes.
emellor@leeni.uk.xensource.com [Wed, 30 Nov 2005 19:48:54 +0000 (19:48 +0000)]
Miscellaneous tidying up, no semantic changes.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoFix test following uuid format change in changeset 8089.
emellor@leeni.uk.xensource.com [Wed, 30 Nov 2005 19:48:21 +0000 (19:48 +0000)]
Fix test following uuid format change in changeset 8089.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoMove the relocate.setupRelocation code into XendDomain, removing the mutual
emellor@leeni.uk.xensource.com [Wed, 30 Nov 2005 19:26:32 +0000 (19:26 +0000)]
Move the relocate.setupRelocation code into XendDomain, removing the mutual
dependency between those two classes.

Split the XendDomain constructor into two pieces so that XendDomainInfo can
call XendDomain.instance even during the initial startup of XendDomain.

These two together mean that there is no need for the horrendous hack using
XendRoot.get_component to pass the singleton instance of XendDomain around.
Both XendRoot.get_component and XendRoot.add_component can go.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoMatch rename of xm info field from memory to total_memory.
emellor@leeni.uk.xensource.com [Wed, 30 Nov 2005 19:25:35 +0000 (19:25 +0000)]
Match rename of xm info field from memory to total_memory.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoFix the reporting when this test fails (the eyecatcher variables would not be
emellor@leeni.uk.xensource.com [Wed, 30 Nov 2005 18:55:09 +0000 (18:55 +0000)]
Fix the reporting when this test fails (the eyecatcher variables would not be
created if the domain creation actually succeeded).  Use total_memory not
free_memory to determine how big to make the domain -- when ballooning down of
dom0 works properly, creating a domain larger than free_memory is possible.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoDon't refuse to clean up after a domain death when the buffer is not empty. If
emellor@leeni.uk.xensource.com [Wed, 30 Nov 2005 18:48:27 +0000 (18:48 +0000)]
Don't refuse to clean up after a domain death when the buffer is not empty.  If
the domain has gone away, then no-one can attach to the pty because Xend will
have cleaned up the entries in the store, so the pty will never become ready to
write.  The buffer will never get emptied, so cleanup will never occur. This
leaks ptys, file descriptors, and memory.  Simply throw those data away instead.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoMove the translation from pages to MiB out of XendNode and into the xc layer.
emellor@leeni.uk.xensource.com [Wed, 30 Nov 2005 18:43:00 +0000 (18:43 +0000)]
Move the translation from pages to MiB out of XendNode and into the xc layer.
xc has access to the page size for the platform and the Python layer does not,
so there was a hardcoded "/ 256" in there.

Rename the "memory" physinfo parameter to "total_memory", to match the usage
elsewhere.

Tidy the code generating the SXP for xm info.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoCope with longs being passed to xstransact.write.
emellor@leeni.uk.xensource.com [Wed, 30 Nov 2005 18:38:48 +0000 (18:38 +0000)]
Cope with longs being passed to xstransact.write.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoAdded the errno to the messages printed with the ERR macro. Tidy the use of
emellor@leeni.uk.xensource.com [Wed, 30 Nov 2005 18:38:14 +0000 (18:38 +0000)]
Added the errno to the messages printed with the ERR macro.  Tidy the use of
this macro where newlines have been appended -- the macro does this itself so
there is no need to add another one.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoGNTTABOP_map_grant_ref returns error status and handle as
kaf24@firebug.cl.cam.ac.uk [Wed, 30 Nov 2005 16:24:27 +0000 (17:24 +0100)]
GNTTABOP_map_grant_ref returns error status and handle as
separate fields. Update callers for new interface. Also
use int16_t as standard error code type on all public
interfaces.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoPublic interface cleanups. Widen some fields in public
kaf24@firebug.cl.cam.ac.uk [Wed, 30 Nov 2005 15:03:05 +0000 (16:03 +0100)]
Public interface cleanups. Widen some fields in public
interface defintions for future extensibility. In particular,
grant references are now 32 bits and this has some knock-on
effects on split-driver interfaces.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoRemove some vmx header files from Xen public interfaces.
kaf24@firebug.cl.cam.ac.uk [Wed, 30 Nov 2005 11:51:24 +0000 (12:51 +0100)]
Remove some vmx header files from Xen public interfaces.
They are not public.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoSome tweaks to the restore and migrate tests to expose the consoles of the
dan@guaranine.beaverton.ibm.com [Wed, 30 Nov 2005 11:44:19 +0000 (11:44 +0000)]
Some tweaks to the restore and migrate tests to expose the consoles of the
restored DomUs, since they currently Oops on x86_64.

20 years agoRemove useless test 05_create_noroot_noram
dan@caffeine.beaverton.ibm.com [Wed, 30 Nov 2005 11:42:07 +0000 (11:42 +0000)]
Remove useless test 05_create_noroot_noram

20 years agoEnable console debug dumping so that we submit the oops generated by
dan@guaranine.beaverton.ibm.com [Wed, 30 Nov 2005 11:41:33 +0000 (11:41 +0000)]
Enable console debug dumping so that we submit the oops generated by
network-detach to the reporting site.

20 years agoFix serial pty creation in qemu-dm. Set raw attributes to
kaf24@firebug.cl.cam.ac.uk [Wed, 30 Nov 2005 11:32:16 +0000 (12:32 +0100)]
Fix serial pty creation in qemu-dm. Set raw attributes to
avoid weird buffering behaviour and obtain the pty name
via ptsname().

Signed-off-by: Ping Yu <ping.y.yu@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoWe need to do sync when mov_to_cr3 to a value already shadowed.
kaf24@firebug.cl.cam.ac.uk [Wed, 30 Nov 2005 11:16:35 +0000 (12:16 +0100)]
We need to do sync when mov_to_cr3 to a value already shadowed.
The L2 page and already shadowed L1 page may be out of sync.
This fixes the problems of segmentation faults and strange prints
when booting Redhat FC3 and make kernel in FC3 in VMX domain.

Signed-off-by: Xiaofeng Ling <xiaofeng.ling@intel.com>
20 years agoAdd ATA-over-Ethernet as a module to the default 32-bit -xen config
kaf24@firebug.cl.cam.ac.uk [Wed, 30 Nov 2005 11:13:53 +0000 (12:13 +0100)]
Add ATA-over-Ethernet as a module to the default 32-bit -xen config
(it is already included in the default 64-bit -xen config).

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agodomain_pause duplicates the code from vcpu_pause. Eliminate the
kaf24@firebug.cl.cam.ac.uk [Wed, 30 Nov 2005 11:10:34 +0000 (12:10 +0100)]
domain_pause duplicates the code from vcpu_pause. Eliminate the
duplicate code and make domain_pause a mirror of the existing
domain_unpause.

Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
20 years agoRemoves the carriage returns from some of the vtpm
kaf24@firebug.cl.cam.ac.uk [Wed, 30 Nov 2005 11:07:28 +0000 (12:07 +0100)]
Removes the carriage returns from some of the vtpm
source files that were edited in windows at some point.

Signed-off-by: Vinnie Scarlata <vincent.r.scarlata@intel.com>
20 years agowritable_pl1e in shadow mode is a machine address, so
kaf24@firebug.cl.cam.ac.uk [Wed, 30 Nov 2005 10:36:57 +0000 (11:36 +0100)]
writable_pl1e in shadow mode is a machine address, so
is type physaddr_t, not unsigned long.

Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoDisable some over-zealous sanity checking for now (can cause major problems
smh22@firebug.cl.cam.ac.uk [Tue, 29 Nov 2005 16:59:03 +0000 (17:59 +0100)]
Disable some over-zealous sanity checking for now (can cause major problems
with live migration to localhost). A proper fix will follow.

Signed-off-by: Steven Hand <steven@xensource.com>
20 years agoFix typo.
smh22@firebug.cl.cam.ac.uk [Tue, 29 Nov 2005 15:03:06 +0000 (16:03 +0100)]
Fix typo.

Signed-off-by: Steven Hand <steven@xensource.com>
20 years agoTidy and comment use of canonicalise_mode, et al.
emellor@leeni.uk.xensource.com [Tue, 29 Nov 2005 15:01:47 +0000 (15:01 +0000)]
Tidy and comment use of canonicalise_mode, et al.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoMerged.
emellor@leeni.uk.xensource.com [Tue, 29 Nov 2005 15:00:27 +0000 (15:00 +0000)]
Merged.

20 years agoIncrease device timeout to 10 seconds, as restarting a DHCP server takes a few
emellor@leeni.uk.xensource.com [Tue, 29 Nov 2005 15:00:01 +0000 (15:00 +0000)]
Increase device timeout to 10 seconds, as restarting a DHCP server takes a few
seconds, so we need to allow for that.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoAvoid audit code during live migrate on 32bit since it's not required.
smh22@firebug.cl.cam.ac.uk [Tue, 29 Nov 2005 14:57:42 +0000 (15:57 +0100)]
Avoid audit code during live migrate on 32bit since it's not required.

Signed-off-by: Steven Hand <steven@xensource.com>
20 years agoSupport facilities for the new DHCP support.
emellor@leeni.uk.xensource.com [Tue, 29 Nov 2005 14:57:33 +0000 (14:57 +0000)]
Support facilities for the new DHCP support.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoAdded trap for ERR, to get better response from the scripts when they are really
emellor@leeni.uk.xensource.com [Tue, 29 Nov 2005 14:56:54 +0000 (14:56 +0000)]
Added trap for ERR, to get better response from the scripts when they are really
broken, and add do_or_die command.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoReplace grep >&/dev/null with grep -q.
emellor@leeni.uk.xensource.com [Tue, 29 Nov 2005 14:56:16 +0000 (14:56 +0000)]
Replace grep >&/dev/null with grep -q.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoAdded DHCP server support, configured by a dhcp=yes parameter. This will write
emellor@leeni.uk.xensource.com [Tue, 29 Nov 2005 14:55:48 +0000 (14:55 +0000)]
Added DHCP server support, configured by a dhcp=yes parameter.  This will write
the appropriate entries into dom0's DHCP server configuration file, allowing
that server to provide info for the guest when it starts.

If an IP address is not configured for vif-nat, invent one using the domain
ID and vif ID.

Fix the vif-nat script.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoTidy up audit code for PAE plus avoid its use during live migrate where
smh22@firebug.cl.cam.ac.uk [Tue, 29 Nov 2005 14:54:44 +0000 (15:54 +0100)]
Tidy up audit code for PAE plus avoid its use during live migrate where
it is not strictly required.

Signed-off-by: Steven Hand <steven@xensource.com>
20 years agoCleanup backend block device logic under save/restore; this should
smh22@firebug.cl.cam.ac.uk [Tue, 29 Nov 2005 13:50:30 +0000 (14:50 +0100)]
Cleanup backend block device logic under save/restore; this should
fix the issues some people have seen with segfaults in vbd_translate
and/or user-space hangs.

Signed-off-by: Steven Hand <steven@xensource.com>